package com.liuj.springbucks.service;

import com.liuj.springbucks.domain.Coffee;
import org.apache.ibatis.annotations.Param;
import org.joda.money.Money;

import java.util.List;

public interface CoffeeService {

    List<Coffee> findAllWithParam(int pageNum, int pageSize);

    //新增咖啡信息
    void installCoffee(Coffee coffee) throws Exception;

    //修改咖啡信息
    void updateCoffee(Coffee coffee) throws Exception;

    //删除咖啡信息
    void deleteCoffee(Long id) throws Exception;

    //根据ID查询咖啡信息
    Coffee findById(@Param("id") Long id);

    List<Coffee> findAll();

    String redisFind(String name);
}
